function [Modified_Mini_Probes_Sign] = Extract_Miniprobes_Sign_Window(Rate,Interleaver_L)


%*---------------------------------------------------------------------------------------------------*%
global LUT_S 

Data_Rates = [3200 4800 6400 8000 9600];
Interleaver_Lengths = [1 3 9 18 36 72];
Rate_Index = find(Data_Rates==Rate);
Interleaver_Index = find(Interleaver_Lengths==Interleaver_L);

%*---------------------------------------------------------------------------------------------------*%


%*------------------------------------------- Mini_Probes -----------------------------------------*%

Mini_Probe_Plus_Sign =  1;
Mini_Probe_Minus_Sign =  -1;
Mini_Probe_Plus_Minus = [Mini_Probe_Plus_Sign;Mini_Probe_Minus_Sign];

for index1 = 1:6 
    % the six mini probes that depend on the rate and interleaver size
    Mini_Probe_S0_S5(index1,:) = Mini_Probe_Plus_Minus(LUT_S(Rate_Index,Interleaver_Index,index1)+1,:);
end

for index2 = 1:7 
    % the first seven minus probes of the first eight symbols that locates
    % the following probes (represent the rate and interleaver size)
    Mini_Probe_First_8(index2,:) = Mini_Probe_Minus_Sign;
end
Mini_Probe_First_8(8,:) = Mini_Probe_Plus_Sign;

Mini_Probe_Set1 = [Mini_Probe_Plus_Sign;Mini_Probe_Plus_Sign;Mini_Probe_Minus_Sign];
Mini_Probe_Set2 = [Mini_Probe_Plus_Sign;Mini_Probe_Minus_Sign;Mini_Probe_Plus_Sign];
Mini_Probe_Set3 = [Mini_Probe_Plus_Sign;Mini_Probe_Minus_Sign;Mini_Probe_Minus_Sign];
Mini_Probe_Set4 = [Mini_Probe_Minus_Sign;Mini_Probe_Plus_Sign;Mini_Probe_Plus_Sign];


Modified_Mini_Probes_Sign = [Mini_Probe_Minus_Sign; Mini_Probe_First_8; Mini_Probe_S0_S5; Mini_Probe_Set1; Mini_Probe_Plus_Sign;
                         Mini_Probe_First_8; Mini_Probe_S0_S5; Mini_Probe_Set2; Mini_Probe_Plus_Sign;
                         Mini_Probe_First_8; Mini_Probe_S0_S5; Mini_Probe_Set3; Mini_Probe_Plus_Sign;
                         Mini_Probe_First_8; Mini_Probe_S0_S5; Mini_Probe_Set4];
                     
%*---------------------------------------------------------------------------------------------------*%
% [L W] = size(Mini_Probes_IN);
% No_Superframes = ceil(L/71);
% R = 71- (No_Superframes*71-L);
% 
% for index3 = 1:No_Superframes-1
%     Modified_Mini_Probes_Sign_T((index3-1)*71+1:index3*71,:) = Modified_Mini_Probes_Sign;
% end
% 
% Modified_Mini_Probes_Sign_T((No_Superframes-1)*71+1:(No_Superframes-1)*71+R,:) = Modified_Mini_Probes_Sign(1:R,:);

%*---------------------------------------------------------------------------------------------------*%
